using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using nDeveloper.UI.Windows.IDE.Properties;
using nDeveloper.BO.Base.Domain;

namespace nDeveloper.UI.Windows.IDE
{
    public partial class frmGeneralOptions : Form
    {
        public frmGeneralOptions()
        {
            InitializeComponent();
        }

        private void cmdCancelar_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void frmGeneralOptions_Load(object sender, EventArgs e)
        {
            Settings ss = new Settings();

            this.chkGOSqlServer.Checked = ss.GerarGOScriptSQLServer;
            this.txtPrefixoRemoverEntidade.Text = ss.PrefixoRemoverEntidade;
        }

        private void cmdOK_Click(object sender, EventArgs e)
        {
            Settings ss = new Settings();

            ss.GerarGOScriptSQLServer = this.chkGOSqlServer.Checked;
            ss.PrefixoRemoverEntidade = this.txtPrefixoRemoverEntidade.Text;
            ss.Save();

            Close();
        }
    }
}